# coding: UTF-8
# Filename : batch_to_db.py
# Company : imedia
# Author : rose
# -*-coding:utf-8 -*-
import sys,datetime
import os,commands
import utils

dir = '/opt/stat/'

python_cmd = '/usr/local/bin/python %s'

def batchLogic(fineName):
    cmd = python_cmd % fineName
    (a, b) = commands.getstatusoutput(cmd)
    print b

batchLogic(dir + 'report_phone.py')
batchLogic(dir + 'report_reg.py')
batchLogic(dir + 'stat_vistor_signup.py')
batchLogic(dir + 'stat_goods.py')
